package javaTest03.exercise02;

public class Student {
    String name;
    int gender;
    int className;
    String major;
    String college;

    public Student(String name, int gender, int className, String major, String college) {
        this.name = name;
        this.gender = gender;
        this.className = className;
        this.major = major;
        this.college = college;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getClassName() {
        return className;
    }

    public void setClassName(int className) {
        this.className = className;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", gender=" + gender +
                ", className=" + className +
                ", major='" + major + '\'' +
                ", college='" + college + '\'' +
                "}\n";
    }
}
